package com.pty.mainservice.service.impl;

import com.pty.mainservice.mapper.UserMapper;
import com.pty.mainservice.model.User;
import com.pty.mainservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Empty on 2017/6/27.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByPrimaryKey(Integer userCode) {
        return userMapper.selectByPrimaryKey(userCode);
    }
}
